SGSetUseScreenBuffer
TheSGSetUseScreenBuffer
function allows you to control whether a video channel uses an offscreen buffer.
pascal ComponentResult SGSetUseScreenBuffer (SGChannel c, Boolean useScreenBuffer);
c
- Identifies the channel for this operation. You provide your
connection identifier. You connect to a channel component by calling theSGNewChannel
orSGNewChannelFromComponent
function, discussed on page 5-29 and page 5-30, respectively.useScreenBuffer
Indicates whether to use an offscreen buffer. If you set this parameter totrue
, the channel draws directly to the screen. If you set it tofalse
, the channel may use an offscreen buffer. If the channel cannot work with offscreen buffers, it ignores this parameter.DESCRIPTION
By default, video channels try to draw directly to the screen. TheSGSetUseScreenBuffer
function allows you to direct a video channel to
draw to an offscreen buffer. If the channel cannot draw offscreen, it ignores
this function. Note that you may not call this function when you are recording.Directing a channel to draw offscreen may be useful if you are performing transformations on the data before displaying it (such as blending it with another graphical image).
RESULT CODES
paramErr -50 Invalid parameter value cantDoThatInCurrentMode -9402 Request invalid in current mode SEE ALSO
You can determine whether you have allowed a channel to draw offscreen by calling theSGGetUseScreenBuffer
function, which is described next.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help